<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:72:"G:\wamp64\www\tch\public/../application/index\view\index\xinlizixun.html";i:1556002893;}*/ ?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
	    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" />
	    <meta name="format-detection" content="telephone=no" />
	    <meta name="full-screen" content="yes" />
	    <meta name="x5-fullscreen" content="true" />
	    <meta name="browsermode" content="application" />
	    <meta name="x5-page-mode" content="app" />
	    <meta name="apple-mobile-web-app-capable" content="yes" />
	    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
       <!--css-->
       <link rel="stylesheet" href="/tch/public/static/assetsindex/css/common.css" />
        <link rel="stylesheet" href="/tch/public/static/assetsindex/css/xinlizixun.css" />
		<link rel="stylesheet" href="/tch/public/static/assetsindex/font/iconfont.css">
		<script src="/tch/public/static/assetsindex/js/jquery-3.3.1.min.js"></script>

        <script>
        	// 条件：尺寸越大，则字体大小越大。尺寸越小，则字体大小越小。
			// 获取html节点
			var html = document.getElementsByTagName('html')[0];
			// 获取屏幕宽度
			var pageWidth=document.documentElement.clientWidth;
			//alert(pageWidth);
			// 屏幕宽度 / 固定数值 = 基准值 1rem=25px
			html.style.fontSize = pageWidth /15 + "px";
        </script>
		<title>心理咨询</title>
	</head>
	<body>
		
			<?php if(is_array($teas) || $teas instanceof \think\Collection || $teas instanceof \think\Paginator): $i = 0; $__LIST__ = $teas;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
			   <div> <div>
		          <img src="/tch/public/static/t.jpg" style="float:left;">
		        <div>
			    <p style="font-size:3px"><?php echo $vo['tintro']; ?></p>
		
</div>
			<?php endforeach; endif; else: echo "" ;endif; ?>

		<style type="text/css">
  		.choosed{background-color: gray};
  		.unchoosed{background-color: white}

		</style>

		<table style="clear:both;font-size:5px;cursor:pointer">
			<?php if(is_array($times) || $times instanceof \think\Collection || $times instanceof \think\Paginator): $i = 0; $__LIST__ = $times;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
			<tr <?php if($vo['tstate']): ?> class="choosed"<?php else: ?> class="unchoosed"  onclick="choose(<?php echo $vo['did']; ?>)" <?php endif; ?>><th>
			<?php echo $vo['week']; ?> <?php echo $vo['time']; ?>
			<?php echo $vo['tname']; ?>
			</th></tr>
			<?php endforeach; endif; else: echo "" ;endif; ?>
		</table>
	<div id="bottom">
		<span>如有疑问，联系心里健康教育中心</span>
		<span>0411-84832298</span>
	</div>	
	<script type="text/javascript">
     function choose(did){
     	var s=confirm("你真的要预约这个事件吗？");
     	if(s){
     		//进入下一个页面
			//  $.get("<?php echo url('wirteinfo'); ?>" ,{did:did},
  			// function(data){
    		// // alert("Data Loaded: " + data);
			// //data装的是控制器（字符串送进来）
			// document.write(date);
  			// 	});
			  $.get("<?php echo url('wirteinfo'); ?>", { did: did},
           function(data){
           document.write(data);
          });


     		// location.href="<?php echo url('wirteinfo',['did'=>"+did+"]); ?>";
     	}else{
     		return false;
     	}
     }

	</script>
		
		
	</body>
<ml>
